@echo off
:: 设置字符编码
chcp 65001
set file_name=D:/desktop/aa.m3u8
set output_path=D:/videos/
set excutor=D:/dev/ffmpeg/bin/
echo output_path is %output_path%

if not exist %file_name% (
  echo %file_name% file not exist
  goto end
)
echo %file_name% loading...
for /f "delims=__, tokens=1,*" %%i in (%file_name%) do (
  echo %%j
  %excutor%ffmpeg -i %%j %output_path%%%i
)
:end